#ifndef MESSAGE_H
#define MESSAGE_H

#include <QString>
#include <QDate>
#include <QTime>
#include <QDebug>

typedef struct OMessage
{
    QString flag;
    QDate date;
    QTime time;
    QString author; // ToDo need status of the user ( User / Modo / admin )
    QString message;

    // int compare(const OMessage& m);

    bool operator==(const OMessage& m) const;
    bool operator!=(const OMessage& m) const;
}OMessage;

QDebug operator<<(QDebug dbg, const OMessage& m);

#endif // MESSAGE_H
